from django.conf.urls import url
from library import views

app_name = 'library'
urlpatterns = [
    url(r'^index/$', views.index, name='index'),  # 首页
    url(r'^search/', views.search, name='search'),  # 搜索页面
    url(r'^book_detail/(?P<id>[0-9]+)/$', views.book_detail, name='book_detail'),  # 图书详情
    url(r'^classification/$', views.classification, name='classification'),  # 图书分类
    url(r'^class_books/(?P<id>[0-9]+)/$', views.class_books, name='class_books'),  # 某类别图书
]
